<style type="text/css">
    .bjui-pageHeader{
        font-size: 18px;
        font-weight: bold;
    }
    .form{
        padding: 15px;
    }
    .form dl {
        overflow: hidden;
        padding-top: 15px;
    }

    .form dt {
        color: #666;
        float: left;
        font-size: 14px;
        padding: 3px 0 0;
        width: 18%;
    }
    .form dd {
        float: left;
        line-height: 22px;
    }
    dd.desc {
        height: 30px;
        padding: 0 10px;
        width: 150px;
    }
</style>

<div class="bjui-pageContent">
    <div class="form">
        <form method='post'  data-toggle="validate" action="{:U('Items/add')}">
            <dl>
                <dt>名称：</dt>
                <dd>
                    <input type="text" name="name" class="input-nm"  data-rule="required" data-tip="请填写名称" data-ok="OK"/>
                </dd>
            </dl>
            <dl>
                <dt>枚举值：</dt>
                <dd>
                    <input type="text" name="value" class="input-nm" value="{$maxValue}"  data-rule="required" data-tip="请填写枚举值" data-ok="OK"/>
                </dd>
            </dl>
            <dl>
                <dt>所属组名：</dt>
                <dd>
                    <select name="group"   data-toggle="selectpicker" data-width="200">

                        <foreach name='vlist' item='v'>
                            <option value="{$v.name}" <if condition="$group eq $v['name']">selected="selected"</if>
                            >{$v.remark}
                        </option>
                    </foreach>
                </select>
            </dd>
        </dl>
        <dl>
            <dt>排序：</dt>
            <dd>
                <input type="text" name="sort" class="input-nm" value="0" />
            </dd>
        </dl>

    </form>
</div>
</div>
<div class="bjui-pageFooter">
<ul>
    <li>
        <button type="button" class="btn-close" data-icon="close">关闭</button>
    </li>
    <li>
        <button data-icon="save" class="btn btn-default" type="submit">保存</button>
    </li>
</ul>
</div>